<!DOCTYPE html>
<html>
<head>
  <base href='/' />
  <!-- ejs语法 -->
  <title><%= htmlWebpackPlugin.options.title %></title>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <!-- 设置favicon -->
  <% if (htmlWebpackPlugin.options.favIcon && htmlWebpackPlugin.options.favIcon.length > 0) { %>
    <link rel="shorticon icon" type="image/x-icon" href="<%= htmlWebpackPlugin.options.favIcon %>">
  <% } %>
</head>

<body>
  <div id="root"></div>
</body>

<!-- 是否是开发环境? -->
<% if (htmlWebpackPlugin.options.devMode) { %>
    <script src="http://localhost:8080/webpack-dev-server.js"></script>
<% } %>

</html>
